package com.wangshang.team.commodity.po;

/**
 * AbstractTeamCommodityInfoId entity provides the base persistence definition
 * of the TeamCommodityInfoId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractTeamCommodityInfoId implements
		java.io.Serializable {

	// Fields

	private Integer teamCommodityId;
	private Integer teamShopId;

	// Constructors

	/** default constructor */
	public AbstractTeamCommodityInfoId() {
	}

	/** full constructor */
	public AbstractTeamCommodityInfoId(Integer teamCommodityId,
			Integer teamShopId) {
		this.teamCommodityId = teamCommodityId;
		this.teamShopId = teamShopId;
	}

	// Property accessors

	public Integer getTeamCommodityId() {
		return this.teamCommodityId;
	}

	public void setTeamCommodityId(Integer teamCommodityId) {
		this.teamCommodityId = teamCommodityId;
	}

	public Integer getTeamShopId() {
		return this.teamShopId;
	}

	public void setTeamShopId(Integer teamShopId) {
		this.teamShopId = teamShopId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractTeamCommodityInfoId))
			return false;
		AbstractTeamCommodityInfoId castOther = (AbstractTeamCommodityInfoId) other;

		return ((this.getTeamCommodityId() == castOther.getTeamCommodityId()) || (this
				.getTeamCommodityId() != null
				&& castOther.getTeamCommodityId() != null && this
				.getTeamCommodityId().equals(castOther.getTeamCommodityId())))
				&& ((this.getTeamShopId() == castOther.getTeamShopId()) || (this
						.getTeamShopId() != null
						&& castOther.getTeamShopId() != null && this
						.getTeamShopId().equals(castOther.getTeamShopId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTeamCommodityId() == null ? 0 : this.getTeamCommodityId()
						.hashCode());
		result = 37
				* result
				+ (getTeamShopId() == null ? 0 : this.getTeamShopId()
						.hashCode());
		return result;
	}

}